package com.kucun.util;



import java.util.Date;

/**
 * 菜单
 * @author Administrator
 *  implements Comparable<Menu>
 */
public class TMenu {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7825064276634776746L;
	private Integer id;
	private Boolean checked;
	private String icon ;
	private Boolean isParent;
	private String name;
	private Boolean open;
	private String operatelevel;
	private Integer parentid;
	private String target;
	private String url;
	
	private Integer create_user_id;
	private Date create_date;
	private Date lastupdate;
	private Integer orderColumn;
	
	private String state;
	
	
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public TMenu(){
		
	}
	
	public Boolean getChecked() {
		return checked;
	}
	public void setChecked(Boolean checked) {
		this.checked = checked;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Boolean getIsParent() {
		return isParent;
	}
	public void setIsParent(Boolean isParent) {
		this.isParent = isParent;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Boolean getOpen() {
		return open;
	}
	public void setOpen(Boolean open) {
		this.open = open;
	}
	public String getOperatelevel() {
		return operatelevel;
	}
	public void setOperatelevel(String operatelevel) {
		this.operatelevel = operatelevel;
	}
	public Integer getParentid() {
		return parentid;
	}
	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getCreate_user_id() {
		return create_user_id;
	}

	public void setCreate_user_id(Integer createUserId) {
		create_user_id = createUserId;
	}

	public Date getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Date createDate) {
		create_date = createDate;
	}

	public Date getLastupdate() {
		return lastupdate;
	}

	public void setLastupdate(Date lastupdate) {
		this.lastupdate = lastupdate;
	}
	public Integer getOrderColumn() {
		return orderColumn;
	}

	public void setOrderColumn(Integer orderColumn) {
		this.orderColumn = orderColumn;
	}

	//排序规则
	/*@Override
	public int compareTo(Menu target) {
//		if(null!=target.getModules() && null!=this.getModules()){
//			return target.getModules().getOrderColumn().compareTo(this.getModules().getOrderColumn());
//		}
//		return target.getOrderColumn().compareTo(this.getOrderColumn());
		int temp=this.getOrderColumn().compareTo(target.getOrderColumn());
		System.out.println(temp);
		return temp;
	}
*/
	
}

